﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace PBTService
{
    public enum PBTServerActionType
    {

    }

    [DataContract]
    public class PBTChatMessage : PBTServiceMessage
    {
        [DataMember]
        public string Message { get; set; }

        //ctor
        public PBTChatMessage(PBTGamePlayer sender, string message)
            : base(sender)
        {
            this.Message = message;
        }
    }

    [DataContract]
    public class PBTUpdateMessage : PBTServiceMessage
    {
        [DataMember]
        public Tuple<float, float> Position;

        //ctor
        public PBTUpdateMessage(PBTGamePlayer sender)
            : base(sender)
        {

        }
    }

    [DataContract]
    public class PBTActionMessage : PBTServiceMessage
    {
        [DataMember]
        public PBTServerActionType Action { get; set; }

        //ctor
        public PBTActionMessage(PBTGamePlayer sender, PBTServerActionType action)
            : base(sender)
        {
            this.Action = action;
        }
    }
}
